<?php $this->lang->load('nob_trail_inscription', $this->session->userdata('lg'));?>
<br>
<?php if(isset($inscriptions)){?>
<table class="listing" style="min-width: none; background-color: white;">
	<thead>
		<tr>
			<th colspan="11">Liste des inscrits</th>
		</tr>
		<tr>
			<th>&nbsp;</th>
			<th><?php echo $this->lang->line('inscr_tab_last_name');?></th>
			<th><?php echo $this->lang->line('inscr_tab_first_name');?></th>
			<th><?php echo $this->lang->line('inscr_tab_mail');?></th>
			<th><?php echo $this->lang->line('inscr_tab_club');?></th>
	     	<th><?php echo $this->lang->line('inscr_tab_sex');?></th>
			<th><?php echo $this->lang->line('inscr_tab_zip');?></th>
	     	<th><?php echo $this->lang->line('inscr_tab_country');?></th>
			<th><?php echo $this->lang->line('inscr_tab_ddn');?></th>
	     	<th><?php echo $this->lang->line('inscr_tab_race');?></th>
	     	<th><?php echo $this->lang->line('inscr_tab_paye');?></th>
		</tr>
	</thead>
	<tbody>
		<?php 
		$i=1;
		foreach ($inscriptions as $currentInscription) {
		?>
		<tr>
			<td><?php echo $i++; ?></td>
			<td><?php echo $currentInscription->lastName; ?></td>
			<td><?php echo $currentInscription->firstName; ?></td>
			<td><?php echo $currentInscription->email; ?></td>
			<td><?php echo $currentInscription->club; ?></td>
			<td><?php echo $currentInscription->sex; ?></td>
			<td><?php echo $currentInscription->zipCode; ?></td>
			<td><?php echo $currentInscription->country; ?></td>
			<td><?php echo $this->tools->getDate($currentInscription->birthDate); ?></td>
			<td><?php echo $this->tools->getCourse($currentInscription->course); ?></td>
			<td><?php 
				if($currentInscription->paye==1){
				?>
					<a href="/nobressart/index.php/courses/trail/inscriptionsPaye/<?php echo $currentInscription->id; ?>/0" >
						<img alt="payé" src="/nobressart/images/icons/dbtool-green.ico"  />
					</a>
				<?php 			
				}else{
				?>
					<a href="/nobressart/index.php/courses/trail/inscriptionsPaye/<?php echo $currentInscription->id; ?>/1" >
						<img alt="non payé" src="/nobressart/images/icons/dbtool-red.ico"  />
					</a>
				<?php 
				} 
				
			?></td>
		</tr>
		<?php }?>
	</tbody>
</table>
<?php }?>